<div id="forum">

<!--#include("_header.html")-->

<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" id="fo_write" class="forumWrite">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{htmlspecialchars($oDocument->getContentText())}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />

	<table cellpadding="0" cellspacing="0" border="0" class="t_lst">
		<colgroup>
		<col style="width:80px" />
		<col style="" />
		</colgroup>
		<tbody>
		<tr>
		<th>{$lang->title}</th>
		<td><input type="text" name="title" value="{htmlspecialchars($oDocument->getTitleText())}" id="title_post"/></td>
		</tr>

		<tr>
		<th>{$lang->category}</th>
		<td><select name="category_srl" id="category_srl">
					<option value="">{$lang->category}</option>
					<!--@foreach($category_list as $val)-->
					<option <!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <!--@if($val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl'))-->selected="selected"<!--@endif-->>
						{str_repeat(" -->",$val->depth)} {$val->title} ({$val->document_count})
					</option>
					<!--@endforeach-->
				</select></td>
		</tr>
		</tbody>
	</table>
<div class="thread_mod">
	<div class="smart_content">
				{$oDocument->getEditor()}
	</div>
	
	<dl class="label_lst">
	<!--@if($is_logged)-->
	<!--@if($grant->manager || $grant->moderator)-->
	<dt><label for="is_notice">{$lang->notice}</label></dt>
	<dd><input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" /></dd>
	<dt><label for="allow_comment">{$lang->allow_comment}</label></dt>
	<dd><input type="checkbox" name="allow_comment" value="Y" <!--@if($oDocument->allowComment())-->checked="checked"<!--@end--> id="allow_comment" /></dd>
	<!--@end-->
	<dt><label for="notify_message">{$lang->notify}</label></dt>
	<dd><input type="checkbox" name="notify_message" value="Y" <!--@if($isNotified)-->checked="checked"<!--@end--> id="notify_message" class="inputCheck" /></dd>
	<!--@endif-->
	</ul>

    <!--@if(count($extra_keys))-->
    <table border="1" cellspacing="0" summary="Extra Form" class="extraVarsList">
	<caption><em>*</em> : {$lang->is_required}</caption>
    <!--@foreach($extra_keys as $key => $val)-->
    <tr>
        <th scope="row">{$val->name} <!--@if($val->is_required=='Y')--><em>*</em><!--@end--></th>
        <td>{$val->getFormHTML()}</td>
    </tr>
    <!--@endforeach-->
    </table>
	</div>
    <!--@endif-->
    </form>
</div>
<div class="forumButton fo_write_btn"><a href="#" class="forumButton blue" onclick="jQuery('#fo_write').submit();return false;" >{$lang->cmd_registration}</a></div>